package com.wolf.service.impl;

        import com.wolf.pojo.Wl_category;
        import com.wolf.repository.Wl_categoryMapper;
        import com.wolf.service.Wl_categoryService;
        import org.springframework.stereotype.Service;

        import javax.annotation.Resource;
        import java.util.List;

@Service
public class Wl_categoryServiceImpl implements Wl_categoryService{

    @Resource
    Wl_categoryMapper wl_categoryMapper;

    @Override
    public int deleteByPrimaryKey(String cateid) {
        return wl_categoryMapper.deleteByPrimaryKey(cateid);
    }

    @Override
    public int insert(Wl_category record) {
        return wl_categoryMapper.insert(record);
    }

    @Override
    public int insertSelective(Wl_category record) {
        return wl_categoryMapper.insertSelective(record);
    }

    @Override
    public Wl_category selectByPrimaryKey(String cateid) {
        return wl_categoryMapper.selectByPrimaryKey(cateid);
    }

    @Override
    public int updateByPrimaryKeySelective(Wl_category record) {
        return 0;
    }

    @Override
    public int updateByPrimaryKey(Wl_category record) {
        return wl_categoryMapper.updateByPrimaryKey(record);
    }

    @Override
    public List<Wl_category> getAll() {
        return wl_categoryMapper.getAll();
    }

    @Override
    public List<Wl_category> getAllSelective() {
        return wl_categoryMapper.getAllSelective();
    }

    @Override
    public List<Wl_category> getCateName(String cateName) {
        return wl_categoryMapper.getCateName(cateName);
    }

    @Override
    public List<String> getCateId(String parentName) {
        return wl_categoryMapper.getCateId(parentName);
    }

    @Override
    public List<Wl_category> getChild(String cateId) {
        return wl_categoryMapper.getChild(cateId);
    }

    @Override
    public Object getByParentName(String parentId) {
        return wl_categoryMapper.getByParentName(parentId);
    }

    @Override
    public List<Wl_category> getAllCateName() {
        return wl_categoryMapper.getAllCateName();
    }

    @Override
    public List<Wl_category> getByCateId() {
        return wl_categoryMapper.getByCateId();
    }

    @Override
    public List<Wl_category> Wl_coupon_getByCateName() {
        return wl_categoryMapper.Wl_coupon_getByCateName();
    }


}
